package com.example.huadu_server.appointment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.sql.Timestamp;

@Data
@TableName("appointment") // 绑定数据库表
public class Appointment {
    @TableId(type = IdType.AUTO) // 主键自增
    private Integer id;
    private Integer userId;  // 预约用户ID
    private Integer landlordId;  // 房东ID
    private Integer houseId; // 房源ID
    private Date appointmentDate; // 预约时间
    private String appointmentStatus; // 预约状态（pending, approved, rejected）
    private String remarks; // 备注
    private Timestamp time; // 创建时间和更新时间
    private Integer scheduleId;     // 档期 ID
}
